package com.pine.dcts.task;

/**
 * @author xiaoyuan
 * @create 2021/4/13 17:03
 **/
public abstract class AbstractRunner<T extends BaseTask> implements Runnable {

    protected T task;

    protected TaskRunnerResult result;

    public AbstractRunner(T task) {
        this.task = task;
    }

    @Override
    public void run() {

        execute();
    }

    public abstract void execute();
}
